<div class="widget-head" style="margin-top:0;">
    <div class="widget-title">存储设置</div>
</div>
<div class="layui-container" style="width:100%;">
    <form class="layui-form" action="/admin/config/edit_post">
        <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title">
                <li class="layui-this">本地存储</li>
                <li>七牛存储</li>
                <li>选择存储</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show" style="padding-top:30px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">存储目录</label>
                        <div class="layui-input-block">
                            <input type="text" name="config[local_dir]" value="{$info.config.local_dir}" placeholder="请输入存储目录" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item" style="padding-top:30px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">空间名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="config[qiniu_bucket]" value="{$info.config.qiniu_bucket}" placeholder="请输入存储目录" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">ACCESS_KEY</label>
                        <div class="layui-input-block">
                            <input type="text" name="config[qiniu_ak]" value="{$info.config.qiniu_ak}" placeholder="请输入ACCESS_KEY" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">SECRET_KEY</label>
                        <div class="layui-input-block">
                            <input type="text" name="config[qiniu_sk]" value="{$info.config.qiniu_sk}" placeholder="请输入SECRET_KEY" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">空间域名</label>
                        <div class="layui-input-block">
                            <input type="text" name="config[qiniu_domain]" value="{$info.config.qiniu_domain}" placeholder="请输入空间域名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item" style="padding-top:30px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">选择存储</label>
                        <div class="layui-input-block">
                            <php>
                                $local_current = $info['config']['current'] == 'local' ? 'checked':''; $qiniu_current = $info['config']['current'] != 'local' ? 'checked':'';
                            </php>
                            <input type="radio" name="config[current]" value="local" title="本地存储" {$local_current}>
                            <input type="radio" name="config[current]" value="qiniu" title="七牛存储" {$qiniu_current}>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="name" value="存储设置">
                <input type="hidden" name="key" value="{$info.key}">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['element'], function() {

    });
</script>